package cn.mw.cmdb.view;

import cn.mw.microMonitorCommon.api.cmdb.TreeView;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TreeViewObjectV1 implements TreeView {
    private String itemName;
    private String id;
    private Object parentId;

    private String type;

    private String viewType;

    private String headerType;

    private String treePath;

    private List<TreeView> children;

    public void addTreeView(TreeView treeView) {
        if (null == children) {
            children = new ArrayList<>();
        }
        children.add(treeView);
    }
}
